import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from "vuex-persistedstate";

Vue.use(Vuex)

import user from "./module/user"
import home from "./module/home"

export default new Vuex.Store({
    plugins: [
        createPersistedState({ storage: window.sessionStorage }) //配置为sessionStorage，如果不传入对象就是默认
    ],
    state: {
     
    },
    mutations: {
     
    },
    actions: {
    },
    modules: {
        user,
        home
    }
})




